package com.github.cosycode.web.base.constant.postcode;

import com.github.cosycode.web.base.post.IPostCode;

/**
 * <b>Description : </b>
 *
 * @author CPF
 * @date 2019/4/23 16:00
 **/
@SuppressWarnings({"AlibabaEnumConstantsMustHaveComment", "java:S115"})
public enum EFormPostCode implements IPostCode {

    insertSuccess("0101", "新增成功"),
    insertFailure("5101", "新增失败"),
    deleteSuccess("0101", "删除成功"),
    deleteFailure("5102", "删除失败"),
    updateSuccess("0101", "修改成功"),
    updateFailure("5103", "修改失败"),
    ;

    EFormPostCode(String code, String text, String desc) {
        putBean(code, text, desc);
    }

    EFormPostCode(String code, String text) {
        putBean(code, text, text);
    }

    @Override
    public String toString() {
        return toJsonString();
    }

}
